#%%8月医疗报销

a = [12, 768, 139.93, 16, 71.33, 165, 225, 7.18, 125.5, 452, 36, 1]
round(sum(a), 2), len(a)

a = [995.26, 1, 397.18, 12, 36, 577.5]
round(sum(a), 2), len(a)

round(sum(a), 2)+162


#%%8月报销

'''
订单号: 3900000711526844209  开始
订单号: 4013693496906844209   结束 
'''



# 2代机发票1

a = [61.53, 158.34, 27.51, 38, 142.98, 27.23, 44.8, 44.8, 58.61, 143.96, 91.77, 80]

round(sum(a), 2), len(a)

# # 2代机发票2
# a_2 = [477, ]
# ax_2 = round(sum(a_2), 2), len(a_2)


# # 2代机发票3
# a = [5, 3.17, 22.9, 7.2, 11.6, 2.39, 15.08, 6.09, 4.99, 5.46, 15.4, 3.85, 862]
# round(sum(a), 2), len(a)

# a_3 = [859, 91.77]
# ax_3 = round(sum(a_3), 2), len(a_3)


# ax[0]+ax_2[0]+ax_3[0]



# # 吉巨鑫
a = [194.4, 205.2, 388.8]
round(sum(a), 2), len(a)



80-56
80-30
80-36
80-40.5
80-55
80-49+56

#%%临时计算
#import numpy as np

_a = [19, 12.28]
_b = sum(_a, 2)
_b
_a = [1200, 700, 400, 1200, 400]
(round(sum(_a), 2), len(_a))
_a = [24.5, 15.6, 56.9, 75, 49, 12.51, 200, 19, 35.4, 13.76, 12.28, 45.5, 145]
_b = round(sum(_a), 2)
_b
(240 + 120 + 60 + 1920 + 1920,)
117 + 135
480 / 5
4480 / 64
4860 / 100
291.03 + 50
6 + 2 + 2.5 + 2 + 7 + 2
25.4 / 2
0.5 * (0.5 * 23 + 0.5 * 77)
23 / 77
45 / 77
35 * 8
21.5 / 2
300 / 360
42.5 - 90
4984 / 44
114 * 44
4818 / 44
4880 / 16
_a = [10895, 5720, 15237, 12701]
(round(sum(_a), 2), len(_a))
_b = 2835 * 4
_a = [3483, 13721.68, 15107, _b]
(round(sum(_a), 2), len(_a))
1620 / 54
14 * 4.38
510 / 2
6.5 + 2 + 2 + 8.5 + 2
3600 * 8 * 300
24 * 10 ** 6 / (9 * 3600)
1600 * 0.87
15 * 0.283
_a = [1200, 205, 276.34, 220, 100, 3000, 500, 50]
_a1 = (round(sum(_a), 2), len(_a))
print(_a1)
_a = [2109, 1000, 26800, 328, 317, 194, 299, 398, 386, 538, 922, 190, 6378, 369.5, 149, 186, 260, 1000, 1200, 205, 276.34, 220, 100, 3000, 500, 50]
(round(sum(_a), 2), len(_a))
100000 - (16800.92 + 47375.84)
841 / 6
1736
(176 - 141) / 2
630 + 54.86
172 + 76.11 + 25
4649.56 + 1327.43
40 + 50 + 50 + 80 + 60
1250 + 40
938 + 400 + 50 + 56 + 165 + 203 + 206 + 147 + 55 + 67 + 62
306 + 390 + 536 + 402 + 177 + 231
3700 / 2

144/60

1/40

45/360


107+113
182427+9665+16108


a = 20e3/21.75/8

20*a*1.5

7.3/2

a = [160, 608, 300, 471, 560]
a1 = (round(sum(a), 2), len(a))

a1




#%%电子计算


mil_2_mm = 0.025

10*mil_2_mm


30*mil_2_mm
#%%临时计算
(2465 - 2140) / 2140
2465 - 2140
_a = 2181.42 / 2465
2324.78 / _a
2627 - 2180



#%%年假计算

# 2019年
# 统一年假3天

# 2020年
3+3+16+4+24

# 2021年
3+3+3+8+3+24

# 2022年
1.5+8+3+3+24

# 2023年
1+24



#%%临时计算

_a = [10, 26.76]
f'{sum(_a):.2f}'
_a = [53.44, 20.53, 55.51, 1.58, 22.92]
(round(sum(_a), 2), len(_a))
_a = [72.23, 36.12, 36.85]
(round(sum(_a), 2), len(_a))
_a = [41.76, 153.98, 50, 189, 100, 40.4, 9.8, 15, 483, 145.2]
(round(sum(_a), 2), len(_a))






#%%螺纹大径

import numpy as np
p = 1.5
d = 20
p = 2
d = 30
p = 1
d = 10
p = 0.35
d = 1.6
p = 1
d = 18
p = 1
d = 20
p = 1
d = 6

h = np.sqrt(3) / 2 * p
h
_d1 = d - 2 * 6 / 8 * h
(_d1, _d1 / 2)
_d2 = d - 2 * 1 / 8 * h
_d2
print(_d1, _d2, _d2 / 2)



#%%复数

24 * 2.5
m = 0.6
_z = 30
da = m * _z
_a = 1.2 * m
angle = 360 * m / da
(da, _a, angle)



#%%电机

# import numpy as np
mm_to_meter = 1 / 1000
_d2 = 0.1
e = 0.1
n = 3
i = np.pi * _d2 ** 4 / 64
kr = e * i / (180 * n * d1)



#%%

_a = [5.01, 49.78, 51.33, 48.31, 27.43, 56.64, 76.99]
(round(sum(_a), 2), len(_a))
_a = [537.96, 132.74, 173.45]
_b = [216.81, 154.87, 57.52, 70.8, 65.49, 214.16, 100.84, 20.8]
2 * round(sum(_a), 2) + round(sum(_b), 2)
203.54 * 2
2324.77 * 2
_a = [4000, 3500, 6000, 3900, 1300]
(round(sum(_a), 2), len(_a))



#%%扭矩g_cm转n_m

gc_to_nm = 9.8e-05
kgc_to_nm = 0.098
15 * gc_to_nm
2000 * gc_to_nm
13 * kgc_to_nm
330 * gc_to_nm
1000 * gc_to_nm
0.4 * kgc_to_nm
1.5 * kgc_to_nm
0.35 * kgc_to_nm
40.5 + 17.5
41 + 21.5
11 + 27 + 9
2.8 * kgc_to_nm



#%%
# import numpy as np
grade = 800 * 1000000.0
d1 = 4.917 * 0.001
d1
area = np.pi * (d1 / 2) ** 2
area
f = grade * area
f



#%%

65.9 - 64.1
35 * 8
295 * 10
3570 / 105
295 * 1.13
_a = [139.08, 16.57, 24.61, 297.92, 27.12, 180, 177, 44.93, 36.85, 6.68, 22.92, 8, 59.6]
(round(sum(_a), 2), len(_a))
_a = [297.92, 177, 59.6, 16.57, 22.92, 24.61, 8, 182.61, 27.12, 180, 44.93]
(round(sum(_a), 2), len(_a))
139.08 + 36.85 + 6.68
189.84 + 119 + 435
_a = [96.41, 13.5, 8.13, 114.6, 10.52, 24.9, 13.4, 42, 45, 36.6, 104.8, 52.4]
(round(sum(_a), 2), len(_a))
_a = [8.13, 13.5, 9.54, 42, 13.4, 36.6, 24.9, 45, 10.52, 52.4, 114.6, 104.8, 96.41]
(round(sum(_a), 2), len(_a))
_a = [33.22, 37.6, 23.1, 7.49, 20.16, 12.94, 13.94, 8.53, 5.4, 629]
(round(sum(_a), 2), len(_a))



#%%

_a = [146.8, 5.92, 51.22, 15.8, 103, 215, 27, 34, 25.53, 47.2, 9.32, 123, 62, 12.9, 30.3, 17.65, 29.24, 12.48]
(round(sum(_a), 2), len(_a))



#%%

_a = [14.16, 68.55, 53.35, 125.82, 630, 44.9, 10, 29.31]
(round(sum(_a), 2), len(_a))



#%%报销

"""
订单号: 3855797965165844209  开始
订单号: 3877277148024844209  结束
"""
_a = [453.8, 229.2, 8.38, 8, 21.56, 49.9, 6.99]
(round(sum(_a), 2), len(_a))
_a = [1.33, 4.6, 11.9, 45, 10, 57.48, 71.6]
(round(sum(_a), 2), len(_a))



#%%舍佛瑞对账

_a = [4755, 4950, 4894, 4840, 2765]
_a1 = (round(sum(_a), 2), len(_a))
_a1[0] - (16839 + 2765)
_a1[0] - 2765



#%%cc票


_a = [2109, 1000, 26800, 328, 317, 194, 299, 398, 386, 538, 922, 190, 6378, 369.5, 149, 186, 260, 1000]
(round(sum(_a), 2), len(_a))



#%%已交发票


_a = [384, 190, 290, 290, 290, 149, 38.75, 1922.71, 972.93, 279.36, 71.2, 1077.65, 990.2, 79.66]
_a1 = (round(sum(_a), 2), len(_a))
_b = [1310, 4346, 170, 300, 74.5, 74.5, 412, 412, 428, 447, 412]
b1 = (round(sum(_a), 2), len(_a))
_a1[0] + b1[0] + 50 * 55



#%%dd票

a = [177.3, 214, 388, 600, 712, 2109, 3165, 156, 214.95, 214, 263, 1000, 3793, 
     1265, 101, 103.8, 203, 330, 296, 288, 300, 200, 19.27, 39.33, 2270.28, 
     1699, 599, 1000, 89, 86.93, 103.8, 98.9, 118, 795.01, 3e4, 2.1e4]
(round(sum(a), 2), len(a))

#74000-round(sum(a), 2)


#%%ee票

a = [9000, 83, 156, 209, 295, 47.61, 409.68, 60, 105.07, 59.4, 76.43, 
     70.31, 44, 59.49, ]
(round(sum(a), 2), len(a))




#%%

_a = [188, 146, 190, 75, 80, 20, 120, 100, 800]
(round(sum(_a), 2), len(_a))


